<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>统计列表 [{$date}] <a class="btn btn-default btn-return" href="{:U('index')}"><i class="glyphicon glyphicon-share-alt"></i> 返 回</a></h2>
    </div>
    <div class="cf">
        <div class="fl">
            <a class="btn btn-default" href="{:U('statis?date='.date('Y-m-d', strtotime("$date -1 day")))}">前一天</a>
            <a class="btn btn-default" href="{:U('statis')}">当天</a>
            <if condition="$date lt date('Y-m-d')">
                <a class="btn btn-default" href="{:U('statis?date='.date('Y-m-d', strtotime("$date +1 day")))}">下一天</a>
            </if>
        </div>
        <!-- 高级搜索 -->
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
    <table class="table table-bordered">
    <thead>
        <tr>
        <th width="30%" class="">用户</th>
        <th width="30%" class="">发放</th>
        <th width="30%" class="">使用</th>
        <th width="30%" class="">评论数</th>
         
        </tr>
    </thead>
    <tbody>
        <notempty name="statis">
        <volist name="statis" id="vo">
        <tr>
            <td>{$key} | {$key|get_nickname} </td>
            <td>{$vo.gifts}</td>
            <td>{$vo.rewards|default=0|abs}</td>
            <td>{$vo.doreply|default=0}</td>
        </tr>
        </volist>
        <else/>
        <td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
        </notempty>
    </tbody>
    </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
     
    //导航高亮
    highlight_subnav('{:U('Nav/index')}');
    </script>
</block>
